package jass.iss.edu.DataModel;

public class Company {
	
	private String companyName;
	private String companyAddress;
	private String registrationNo;
	private String industry;
	private String description;
	private String website;
	private String email;
	private String contact;
	
	public Company () {
		
		companyName = "NotValid";
		companyAddress = "NotValid";
		registrationNo = "NotValid";
		industry = "NotValid";
		description = "NotValid";
		website = "NotValid";
		email = "NotValid";
		contact = "NotValid";

	}
	
	public Company(String companyName, String companyAddress, String registrationNo, String industry, String description, String website, String email, String contact) {
		
		this();
		this.updateCompanyDetails(companyName, companyAddress, registrationNo, industry, description, website, email, contact);
	}
	
	public String getCompanyName() {
		
		return this.companyName;
	}
	
	public void setCompanyName(String companyName) {
		
		this.companyName = companyName;
	}
	
	public String getCompanyAddress() {
		
		return this.companyAddress;
	}
	
	public void setCompanyAddress(String companyAddress) {
		
		this.companyAddress = companyAddress;
	}
	
	
	public String getRegistrationNo() {
		
		return this.registrationNo;
	}
	
	public void setRegistrationNo(String registrationNo) {
		
		this.registrationNo = registrationNo;
		
	}
	
	public String getIndustry() {
		
		return this.industry;
	}
	
	public void setIndustry(String industry) {
		
		this.industry = industry;
	}
		
	public String getDescription() {
		
		return this.description;
		
	}
	
	public void setDescription(String description) {
		
		this.description = description;
	}
	
	public String getWebsite() {
		
		return this.website;
	}
	
	public void setWebsite(String website) {
		
		this.website = website;
	}
	
	public String getEmail() {
		
		return this.email;
		
	}
	
	public void setEmail(String email) {
		
		this.email = email;
	}
		
	public String getContact() {
		
		return this.contact;
	}
	
	public void setContact(String contact) {
		
		this.contact = contact;
	}
	
	public void updateCompanyDetails(String companyName, String companyAddress, String registrationNo, String industry, String description, String website, String email, String contact) {
		
		this.setCompanyName(companyName);
		this.setCompanyAddress(companyAddress);
		this.setRegistrationNo(registrationNo);
		this.setIndustry(industry);
		this.setDescription(description);
		this.setWebsite(website);
		this.setEmail(email);
		this.setContact(contact);
	}
	
	public String printCompanyDetails() {
		
		String companyDetails;
		
		companyDetails = "\n"+"Company Name: " + this.getCompanyName() + "\n";
		companyDetails = companyDetails + "Company Address: " + this.getCompanyAddress() + "\n";
		companyDetails = companyDetails + "Registration Number: " + this.getRegistrationNo() + "\n";
		companyDetails = companyDetails + "Industry: " + this.getIndustry() + "\n";
		companyDetails = companyDetails + "Description: " + this.getDescription() + "\n";
		companyDetails = companyDetails + "Website: " + this.getWebsite() + "\n";
		companyDetails = companyDetails + "Email: " + this.getEmail() + "\n";
		companyDetails = companyDetails + "Contact: " + this.getContact() + "\n";
		
		return companyDetails;
	}


}
